<?php
namespace app\admin\model;

use think\Model;

class HouseProperty extends Model
{
    public function houseNumber()
    {
        return $this->hasMany('HouseNumber')
            ->order('name');
    }

    public function houseNumberUncollected()
    {
        return $this->hasMany('HouseNumber')
            ->order('payment_time')
            ->where('payment_time', '< time', 'today+10 days');
    }
}
